<!--
 * @Description: 
 * @Version: 1.0
 * @Autor: younghxp
 * @Date: 2021-12-13 10:12:36
 * @LastEditors: younghxp
 * @LastEditTime: 2021-12-14 10:23:16
-->
<template>
  <div class="container">
    <el-tabs v-model="activeName" class="commonTab" type="card">
      <el-tab-pane label="预警巡查" name="first">
        <warning-patrol-list></warning-patrol-list>
      </el-tab-pane>
      <el-tab-pane label="自定义巡查" name="second">
        <custom-patrol-list></custom-patrol-list>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import WarningPatrolList from './WarningPatrolList.vue'
import CustomPatrolList from './CustomPatrolList.vue'
export default {
  name: 'patrolTask',
  components: {
    WarningPatrolList,
    CustomPatrolList,
  },
  data() {
    return {
      activeName: 'first',
    }
  },
  created() {
    if (this.$route.query.activeName == 'second') {
      this.activeName = 'second'
    }
  },
}
</script>

<style scoped lang="less">
.commonTab {
  height: 100%;
  /deep/ .el-tabs__item {
    height: 46px;
    line-height: 46px;
  }
}
</style>
